<!-- 指标修改-提交，保存并提交，撤销 -->
<div class="modal-dialog modal-lg">
  <div class="modal-content">
    <div class="modal-header">
      <button (click)="closeSubmit()" class="close" aria-label="Close">
                  <span aria-hidden="true">&times;</span>
                </button>
      <h4 class="modal-title">
        <span *ngIf="operate=='submits'">指标修改-提交</span>
        <span *ngIf="operate=='saveSubmits'">指标修改-保存并提交</span>
        <span *ngIf="operate=='cancel'">指标修改-撤销</span>
      </h4>
    </div>

    <div class="modal-body" style="padding-top:unset;">
      <form class="form-inline" style="padding-top:15px">
        <div class="form-divider col-lg-12 col-md-12 col-sm-12 col-xs-12" title="提醒信息">
          <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-bottom:10px;margin-left:-30px;">
            <label class="col-lg-2 text-right">提醒人：</label>
            <div class="col-lg-10">
              <div class="input-group" style="width:50%">
                <input type="text" class="form-control" value="{{auditOprZh}}" name="auditOpr" title="{{auditOprZh}}" disabled>
                <span class="input-group-addon" (click)="showRemind()" style="background-color:rgb(30, 185, 225)">
                  <i class="fa fa-search" style="color:white"></i></span>
              </div>

              <button class="btn btn-primary" (click)="setDefault()">设置默认</button>
              <label style="vertical-align:center" for="sms">短信提醒：</label>
              <div class="checkbox checkbox-primary">
                <input type="checkbox" id="sms" [(ngModel)]="sSMSFlag" name="sSMSFlag">
                <label></label>
              </div>
              <label style="vertical-align:center" for="email">邮件提醒：</label>
              <div class="checkbox checkbox-primary">
                <input type="checkbox" id="email" [(ngModel)]="sEmailFlag" name="sEmailFlag">
                <label></label>
              </div>
            </div>
          </div>
          <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-bottom:10px;margin-left:-30px">
            <label class="col-lg-2 text-right">标题：</label>
            <div class="col-lg-10">
              <input style="width:100%" [(ngModel)]="remindBody.title" name="title" maxlength="100" type="text" class="form-control">
            </div>
          </div>
          <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-bottom:10px;margin-left:-30px">
            <label class="col-lg-2 text-right">提醒内容：</label>
            <div class="col-lg-10">
              <textarea style="width:100%" [(ngModel)]="remindBody.content" maxlength="980" name="content" rows="5"></textarea>
            </div>
          </div>
        </div>
      </form>

      <form class="form-inline">
        <div class="form-group col-lg-12" style="padding-bottom:10px;">
          <label class="control-label">开始日期：</label>
          <div class="input-group date form_datetime">
            <span class="input-group-addon">
                          <i class="fa fa-calendar"></i>
                        </span>
            <input type="text" class="form-control" style="background: white; cursor: pointer;" mwlFlatpickr [ngModelOptions]="{standalone: false}"
              [(ngModel)]="beginDate" name="beginDate">
          </div>
          <label class="control-label">结束日期：</label>
          <div class="input-group date form_datetime">
            <span class="input-group-addon">
                          <i class="fa fa-calendar"></i>
                        </span>
            <input type="text" class="form-control" style="background: white; cursor: pointer;" mwlFlatpickr [ngModelOptions]="{standalone: false}"
              [(ngModel)]="endDate" name="endDate">
          </div>
          <button type="button" class="btn btn-primary search-btn" (click)="list()">
               <i class="fa fa-search"></i>查询</button>
        </div>
      </form>

      <div #submitTable></div>
    </div>
    <div class="modal-footer">
      <button class="btn btn-primary pull-right" *ngIf="operate=='submits'" (click)="saveOrSubmit('submits')"><i class="fa fa-save"></i>提交</button>
      <button class="btn btn-primary pull-right" *ngIf="operate=='saveSubmits'" (click)="saveOrSubmit('saveSubmits')"><i class="fa fa-save"></i>保存并提交</button>
      <button class="btn btn-primary pull-right" *ngIf="operate=='cancel'" (click)="saveOrSubmit('cancel')"><i class="fa fa-remove"></i>撤销</button>
      <button class="btn btn-default pull-left" (click)="closeSubmit()">关闭</button>
    </div>
  </div>
</div>

<!-- 提醒者modal -->
<div class="modal modal-open modal-detail" id="submitRemind">
  <div #submitRemind></div>
</div>